package com.t5.bo;

import org.hibernate.annotations.*;

import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "provider")
@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
@Immutable
public class Provider {

  @Id
  private ProviderId id;

  @ManyToOne(fetch = FetchType.LAZY)
  private Account account;

  public ProviderId getId() {
    return id;
  }

  public void setId(ProviderId id) {
    this.id = id;
  }

  public Account getAccount() {
    return account;
  }

  public void setAccount(Account account) {
    this.account = account;
  }

}
